package com.aspose.cells;

class zbmd implements zahx {
   private boolean a;
   private zahn[] b;

   zbmd(zaay var1, boolean var2) {
      this.a = var2;
      this.b = new zahn[var2 ? var1.l.e() : var1.l.f()];
   }

   public zahn c(zaay var1) {
      int var2 = this.a ? var1.g - var1.l.StartRow : var1.h - var1.l.StartColumn;
      zahn var3 = this.b[var2];
      if (var3 == null) {
         return var3;
      } else {
         var3 = var3.c(var1);
         this.b[var2] = var3;
         return var3;
      }
   }

   public void a(zaay var1, zahn var2) {
      this.b[this.a ? var1.g - var1.l.StartRow : var1.h - var1.l.StartColumn] = var2;
   }

   public zahx d(zaay var1) {
      for(int var4 = 0; var4 < this.b.length; ++var4) {
         if (this.b[var4] != null) {
            zahn var2 = this.b[var4];
            zahn var3 = (zahn)var2.d(var1);
            if (var3 != var2) {
               var3.a(true);
               this.b[var4] = var3;
            }
         }
      }

      return this;
   }

   public int B() {
      return this.a ? 2 : 1;
   }

   public void a(zaay var1) {
   }

   public boolean a() {
      return true;
   }

   public void a(boolean var1) {
      zahn[] var2 = this.b;
      int var3 = var2.length;

      for(int var4 = 0; var4 < var3; ++var4) {
         zahn var5 = var2[var4];
         if (var5 != null) {
            var5.a(var1);
         }
      }

   }
}
